﻿

namespace Admin.NET.Core.Btms;

[Tenant("Btms2")]   //"ConfigId"一致
[SugarTable("InvBloodInfo", "血库2库存表")]
public class InvBloodInfo
{
    [SugarColumn(ColumnName = "Id", ColumnDescription = "主键Id", IsPrimaryKey = true, IsIdentity = false)]
    public int Id { get; set; }

    public  DateTime? CreationTime { get; set; }

    //
    // 摘要:
    //     Creator of this entity.
    public  long? CreatorUserId { get; set; }

    /// <summary>
    /// 唯一码 血袋条码
    /// </summary>
    public string Code { get; set; }

    /// <summary>
    ///自编号 
    /// </summary>
    public string OwnNumber { get; set; }

    /// <summary>
    /// 血液产品码Id
    /// </summary>
    public string BasBloodProductId { get; set; }

    /// <summary>
    /// 血液产品名称
    /// </summary>
    public string BasBloodProductName { get; set; }

    /// <summary>
    /// ABO血型
    /// </summary>
    public string ABO { get; set; }

    /// <summary>
    /// RH(D) 取自枚举
    /// </summary>
    public string RhD { get; set; }

    /// <summary>
    /// 容量
    /// </summary>
    public decimal Volume { get; set; }

    /// <summary>
    /// 单位 ml和u 有转换关系
    /// </summary>
    public string Unit { get; set; }

    /// <summary>
    /// 入库价格
    /// </summary>
    public decimal? WarehousingPrice { get; set; }

    /// <summary>
    /// 库存状态
    /// </summary>
    public int Status { get; set; }

    /// <summary>
    /// 特别处理 
    /// </summary>
    public int? SpecialProcessing { get; set; }

    /// <summary>
    /// 有效日期
    /// </summary>
    public DateTime? EffectiveDate { get; set; }

    /// <summary>
    /// 采血日期
    /// </summary>
    public DateTime? GatheringDate { get; set; }

    /// <summary>
    /// 制备日期
    /// </summary>
    public DateTime? MakeDate { get; set; }
    /// <summary>
    /// 献血号
    /// </summary>
    public string BloodDonationCode { get; set; }

    /// <summary>
    /// 是否回收
    /// </summary>
    public bool IsRecycle { get; set; }

    /// <summary>
    /// 自编号
    /// </summary>
    public int? SinceNumber { get; set; }
    /// <summary>
    /// 血液外观
    /// </summary>
    public int? BloodAppearance { get; set; }

    /// <summary>
    /// 入库院区（协议医院出库）
    /// </summary>
    public int? BasBloodSourceId { get; set; }

    /// <summary>
    /// 血液来源
    /// </summary>
    public string BasBloodSource { get; set; }
    /// <summary>
    /// 复核abo
    /// </summary>
    public string ReCheckABO { get; set; }
    /// <summary>
    /// 复核rh
    /// </summary>
    public string ReCheckRhD { get; set; }
}
